-
Notifications
You must be signed in to change notification settings - Fork 974
Conversation
Two things I need to fix right now: Brave lion in top right looks wrong (I removed a class) |
Also with |
d09c1aa
to
8e5c3a1
Compare
Ah, I think I've done too much here :-( Maybe this PR could be changed to fix all of the button issues (actual/potential) as well as the styling, if you don't mind. |
.menuButton is yet to be modified, just fyi |
3990a63
to
accb4b5
Compare
line-height: 1.25; | ||
margin: 5px 5px 0px 0px; | ||
padding-top: 5px; | ||
padding-bottom: 5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1em=16px, 16px*0.3=4.8px≒5px
cursor: pointer; | ||
outline: none; | ||
text-align: left; | ||
// for about:preferences |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The buttons under this section should be removed if necessary. especially from L171 to L176.
9f63cac
to
c85a637
Compare
@luixxiul thanks for those changes! |
Nevermind, the margin does not exist from the first. |
@@ -15,6 +15,7 @@ body { | |||
|
|||
#paymentsSwitches { | |||
margin-top: 15px; | |||
padding: 5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
margin-top: 15px; | ||
display: flex; | ||
align-items: center; | ||
min-height: 40px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding-left: 1em; | ||
// for about:preferences | ||
.prefBody { | ||
.settingsList > .settingItem + button { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the button should be placed under <SettingCheckbox>
. For example: https://github.com/brave/browser-laptop/pull/5916/files#diff-e3eeb751016b2ce9f8278efce585a461R1519
&:hover { | ||
color: white; | ||
} | ||
.settingItem > span + button { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See:
browser-laptop/js/about/preferences.js
Lines 731 to 734 in a162181
<SettingItem dataL10nId='importBrowserData'> | |
<Button l10nId='importNow' className='primaryButton importNowButton' | |
onClick={this.importBrowserDataNow} /> | |
</SettingItem> |
&.setAsDefaultButton, | ||
&.manageAdblockSettings, | ||
&.viewExtensionsInfo, | ||
&.manageAutofillDataButton { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were replaced with .settingsList > .settingItem + button
and .settingItem > span + button
. Styling with classes in that way is a cause of inconsistency in both CSS and JS.
font-size: 0.9em; | ||
margin-top: 20px; | ||
padding: 5px 20px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values should be reconsidered later
|
Let's unify assuming the new button refinements will allow for the font flexibility.
… On Dec 1, 2016, at 6:33 AM, Suguru Hirahara ***@***.***> wrote:
The font-family of the buttons on about:preferences is Arial on common.less, while the global font-family is set to -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; on window.less. This causes another big inconsistency. How should we handle this? @bradleyrichter
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
ea1fb55
to
0be7105
Compare
- some buttons on about:preferences were excluded from settingItem - the buttons styles on about pages were made consistent - about:preferences - about:history - elements in titleBar on about:preferences#payments were aligned - font-size and padding of the buttons on about:preferences were made consistent Auditors: @bradleyrichter Test Plan:
@luixxiul Where are we at on this one? I see you opened a lot of issues and added a lot of commits. Is this ready for review / merging in your opinion? As for changing the font family in common.less, let's split that into another ticket if that's the approach we want to take. As it affects more than just buttons. |
Looks good to me! Nice work 😄 I'll leave as-is right now, since it has "WiP" in the title, but if it's all done, let's go ahead and merge it, @jkup 😄 |
- Paddings of buttons on about:preferences were increased - Removed unnecessary class Auditors: Test Plan:
b52eb32
to
46ee335
Compare
@@ -158,9 +158,10 @@ span.buttonSeparator { | |||
// for about:preferences | |||
.prefBody { | |||
.settingsList > .settingItem + button, | |||
.settingItem > span + button { | |||
.settingItem > span + button, | |||
#paymentsContainer button:not(.close) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This increases padding except the close "x" button on the payments dialog.
Increased and added padding of the buttons on |
Should be good to go 😄 Merging... |
++, and + |
@bradleyrichter I've noticed that and it should be fixed by adding margin-bottom to the wallet address. Will fix. |
thanks! |
git rebase -i
to squash commits (if needed).Fix #5894, fix #5801, fix #4708
Auditors @bradleyrichter @bsclifton
Test Plan:
This commit changes a lot of our global button styles. The best way to test this would be to click through each of the settings pages and the corresponding dialogs and make sure the orange and white buttons we use look consistent.
Some specific examples to check:
Here is a great screenshot @bsclifton put together that shows some inconsistencies. These buttons should all look the same now!